package lab03.test05;

import jdk.jfr.events.FileReadEvent;

import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
       Scanner scanner= new Scanner(System.in);
        String s;
        char []a = new char [10];
        char []b = new char [10];
       File file = new File("a.txt");
        try {
           FileWriter out = new FileWriter(file);
            s = scanner.next();
            a = s.toCharArray();
            for(int i=0;i<a.length;i++){
                a[i] = (char) ((a[i]-'a'+1)%26+'a');
            }
            out.write(a);
            out.close();
           FileReader in = new FileReader(file);
            in.read(b);
            System.out.println(b);
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
